/* --------------------------------------------------------------------------*/
/*                                                                           */
/*                              g l o b a l . c s s                          */
/*                                                                           */
/*    Description: Global CSS definitions that apply to all documents        */
/*    Inspired from http://www.alsacreations.com/static/gabarits/            */
/* --------------------------------------------------------------------------*/

/* --- Page --- */
root { 
    display: block;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #245678;
    background-color: rgba(250,250,255,1); 
    font-family: Verdana, "Bitstream Vera Sans", "Lucida Grande", sans-serif;
    font-size: 0.9em;
}

/* --- Titles --- */
h1, h2, h3, h4, h5 {
    clear: both;
    color: #4444AA;
}
h1 {
    margin-top: 0;
    text-align: center;
}
h2, h3, h4, h5 {
    margin: 1em 0 1em 0;
}
h3.title {
    border-bottom: 1px solid silver;  
}

h1 {
    font-family: Georgia, "Bitstream Vera Serif", Norasi, serif;
    font-size: 4em;
    font-style: italic;
}
h2 {font-size: 2.5em;}
h3 {font-size: 1.8em;}
h4 {font-size: 1.5em;}
h5 {font-size: 1.2em;}
.main h1 {
    text-shadow: 4px 4px 6px rgba(0,0,0,0.5);
}

/* --- Lists --- */
ul, ol {
    margin: .75em 0 .75em 24px;
    padding: 0;
}
li {
    margin: 0;
    padding: 0;
}
ul {
    list-style-type: circle;
}

/* --- Paragraphs --- */
p {
    margin: .75em .5em;
}
li p, blockquote p {
    margin: .5em 0;
}

/* --- links --- */
a {
    color: mediumblue;
    text-decoration: underline;
}
a:hover, 
a:focus {
    color: crimson;
    text-decoration: underline;
}
a img {
    border: none;
}

/* --- Quotes --- */
blockquote, q {
    font-size: 1.1em;
    font-style: italic;
    font-family: Georgia, "Bitstream Vera Serif", Norasi, serif;
}
blockquote {
    margin: .75em 0 .75em 24px;
}
cite {
    font-style: italic;
}

/* --- Misc. elements (alphabetical order) --- */

article  {
    float: left;
    page-break-inside: avoid;
    margin: 10px;
    padding: 0px;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 400;
    line-height: 20.55px;
    color: #354A7B;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0px 2px 2px 1px rgba(45,20,6,0.2);
}
article h2 {
    font-size: 140%;
    padding-bottom: 2px;
    border-bottom: 1px solid #cccccc;      
}

.code,
code {
    color: #cc6600;
}
code.button,
code.key {
    background: white;
    border: 1px solid gray;
    padding-left: 2px;
    padding-right: 2px;
}

code.key {
    color: #0000FF;
    font-weight: bold;
    border-radius: 3px;
}

dt {
    margin-top: 10px;
    font-weight: bold
}

figure {
    margin: 10px;    
}

em {
    font-style: italic;
}

footer {
    clear: both;
    border-top: 1px solid #cccccc;
    margin: 20px;
    padding: 0;
    padding-top: 10px;
    text-align: center;
}

header {
    position: fixed;
    height: 110px;
    left: 0;
    right: 0;
    top: 0;
    z-index: 4;

    /* Gradient background */
    background: rgb(210,235,249); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(210,235,249,1) 0%, rgba(250,250,255,1) 100%);  /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(210,235,249,1)), color-stop(100%,rgba(250,250,255,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(250,250,255,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(250,250,255,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(250,250,255,1) 100%); /* IE10+ */
    background: linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(250,250,255,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2ebf9', endColorstr='#fafaff',GradientType=0 ); /* IE6-9 */
    background: linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(250,250,255,1) 100%);  /* W3C */
}

img {
    border-radius: 6px;
    box-shadow: 5px 5px 5px 2px rgba(45,20,6,0.2);
}
img.icon {
    border-radius: 0;
    box-shadow: none;
}

code,
.code {
    font-size: 95%;
    font-family: "Lucida Console", "Bitstream Vera Mono", "Courier New", monospace;
}

pre strong {
    font-weight: normal;
    color: black;
}

section {
    page-break-before: always;
}
section figcaption {
    text-align: center;
    font-size: 0.7em;
    font-style: italic;
}

strong {
    font-weight: bold;
    color: #A1B55D;
}

/* --- Misc classes (alphabetical order) --- */
.center {
    text-align: center;
}

.clear {
    clear: both;
}

.code {
    margin-left: 25px;
}

.creation-date {
    font-size: 12px;
    line-height: 10px;
    color: #c0c0c0;
    margin-bottom: 8px;
}

.indent {
    margin-left: 50pt;
}

.inline {
    display: inline;
}

.no_border {
    border: 0;
}

.right {
    float: right;
    margin: 0 0 20px 40px;
}

.side {
    float: left;
    margin: 0 40px 20px 0;
}

.snippet {
    padding: 10pt;
    margin-left: 50pt;
    margin-bottom: 20pt;
    background-color: ivory;
    border-radius: 6px;
    box-shadow: 0px 2px 2px 1px rgba(45,20,6,0.2);
}

.warning {
    background: #ffcccc;
    padding: 5pt;
    border-radius: 6px;
    box-shadow: 5px 5px 5px 2px rgba(45,20,6,0.2);
}
